﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02.简单工厂模式.Interface
{
    public interface IFruit
    {
        /// <summary>
        /// 水果的数量
        /// </summary>
        double Amount { get; }

        /// <summary>
        /// 种植种子
        /// </summary>
        /// <param name="amount"></param>
        void Plant(int amount);

        /// <summary>
        /// 生成周期
        /// </summary>
        /// <param name="days"></param>
        void Grow(int days);

        /// <summary>
        /// 收获
        /// </summary>
        /// <returns></returns>
        double Harvest();
    }
}
